package com.alex.springbootdemo.model.param;

import cn.hutool.core.bean.BeanUtil;
import com.alex.springbootdemo.model.pojo.SystemSettings;
import lombok.Data;

@Data
public class SystemSettingsVM {

    private Long id;

    private String key;

    private String value;


    public SystemSettings toEntity() {
        SystemSettings systemSettings = new SystemSettings();
        BeanUtil.copyProperties(this, systemSettings);
        return systemSettings;
    }
}
